package edu.hawaii.myisern.model;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import org.junit.Test;

/**
 * Test utility class.
 * 
 * @author Randy Cox
 * 
 */
public class TestUtility {

  /**
   * Test able to create a utility object.
   */
  @Test
  public void testMyIsernUtilConstructor() {
    Utility util = new Utility();
    assertNotNull("Check if MyIsernUtil is not null.", util);
  }

  /**
   * Test able to create a utility object.
   */
  @Test(expected = Exception.class)
  public void testMyIsernUtilError() {
    Utility.readTextData("bad");
    fail("Utility readTextData with bad filename should throw exception.");
  }

}
